Hashtags control headers

More hastags lower the header level

Small headers

We can type normal paragraphs like we do in any word processor. Admittedly the grammar and spell check is not as robust by default. Make sure to separate paragraphs by a line drop with the enter/return key

Easily integrate code with Rmarkdown

# code chunks work just like individual R scripts
# When knitted, all code chunks put add together
library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.3     ✔ readr     2.1.4
## ✔ forcats   1.0.0     ✔ stringr   1.5.0
## ✔ ggplot2   3.4.3     ✔ tibble    3.2.1
## ✔ lubridate 1.9.3     ✔ tidyr     1.3.0
## ✔ purrr     1.0.2     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
mpg<-mtcars |> 
  group_by(cyl) |> 
  summarize(mean_mpg=mean(mpg))

mpg
## # A tibble: 3 × 2
##     cyl mean_mpg
##   <dbl>    <dbl>
## 1     4     26.7
## 2     6     19.7
## 3     8     15.1
aov_out<-aov(mpg~cyl,data=mtcars) |> 
  summary()

fval=aov_out[[1]]$`F value`[1]
pval=aov_out[[1]]$`Pr(>F)`[1]

We can type results directly into text output with inline code.

There is a significant difference in mean miles per gallon between the number of cylinders in a car (F-value=79.561,p-value= 6.11^{-10}).

Embed figures into the output directly

ggplot(mtcars, aes(x = wt, y = mpg, size = disp)) +
  geom_point()+
  theme_bw()

Style edits

Italics works with asterisk

Bold works with double asterisks

  1. Make lists
  2. Numbered
    1. Sub bullets in option

Add links to websites

Create Captions for images: Wow! So Cool
Create Captions for images: Wow! So Cool